package com.ruoyi.bzjgl.service.impl;

import com.ruoyi.bzjgl.domain.Bzjtable;
import com.ruoyi.bzjgl.mapper.OverdueWarningMapper;
import com.ruoyi.bzjgl.service.IOverdueWarningService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class OverdueWarningServiceImpl implements IOverdueWarningService {
    @Resource
    private OverdueWarningMapper overdueWarningMapper;


    @Override
    public List<Bzjtable> selectOverdueWarningList(String isOverdue, Integer overdueDay) {
        List<Bzjtable> list= new ArrayList<>();
        if("已超期".equals(isOverdue)){
            list = overdueWarningMapper.selectOverdueList();
        }else{
            if(overdueDay!=null){
                list = overdueWarningMapper.selectWillOverDueList(overdueDay);
            }
        }
        return list;
    }
}
